package service.impl;

import java.sql.SQLException;
import java.util.List;

import model.Product;
import model.ProductQuery;
import dao.ProManageDao;
import service.ProManageService;
import util.Pager;

public class ProManageServiceImpl implements ProManageService {
	private ProManageDao proManageDao;
	
	public ProManageDao getProManageDao() {
		return proManageDao;
	}

	public void setProManageDao(ProManageDao proManageDao) {
		this.proManageDao = proManageDao;
	}

	@Override
	public List<Product> getPros(ProductQuery query) throws SQLException {
		return this.proManageDao.getPros(query);
	}

	@Override
	public boolean addPro(Product product) throws SQLException {
		return this.proManageDao.addPro(product);
	}
	
	
}
